package vip.xiaozhao.intern.baseUtil.intf.entity;

import lombok.Data;

import java.util.Date;

/**
 * 大V实体类
 */
@Data
public class VV {
    private Integer id;
    private Integer userId;
    private String userName;
    private String avator;
    private Integer companyId;
    private String companyName;
    private Integer departmentId;
    private String departmentName;
    private Integer positionId;
    private String positionName;
    private Integer status;
    private Integer score;
    private Integer answeredNum;
    private Integer answeringNum;
    private Integer weekAnsweredNum;
    private Integer weekAnsweringNum;
    private Date addTime;
    private Date updateTime;
    
    // 计算周回答率
    public double getWeekAnswerRate() {
        if (weekAnsweredNum == 0 && weekAnsweringNum == 0) {
            return 0.0;
        }
        return (double) weekAnsweredNum / (weekAnsweredNum + weekAnsweringNum) * 100;
    }
} 